package com.HeadlineSystem.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.HeadlineSystem.pojo.News;

public interface NewsMapper {

	List<Map<String, Object>> findPageAll(@Param("indexPage") Integer indexPage, @Param("pageSize") Integer pageSize);

	int deleteByPrimaryKey(Integer id);

	int insert(News record);

	int insertSelective(News record);

	News selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(News record);

	int updateByPrimaryKeyWithBLOBs(News record);

	int updateByPrimaryKey(News record);

	List<Map<String, Object>> findHourTwentyTour();

	int addNewsInfo(News news);

	Map<String, Object> findNewsId(@Param("id")String id);
}